package com.liushuai.eas.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("major")
public class Major {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private int departmentId;

    @TableField(exist = false)
    private Department department;

}
